package cn.com.digitalnet.ad.repository.mybatis;

import java.util.List;
import java.util.Map;

import cn.com.digitalnet.ad.base.IdEntity;

public interface CrudMao<T extends IdEntity> {

	List<T> query(Map<String, Object> params);

	int count(Map<String, Object> params);
	
	void save(T entity);
	
	void update(T entity);

	void delete(Long id);

	void submit(Long id);
}
